package algorithm.sort;

public class Common {
    public void swap(int[] nums, int a, int b) {
        int c = nums[a];
        nums[a] = nums[b];
        nums[b] = c;
    }

    public void printIntArrays(int[] nums) {
        for (int i = 0; i < nums.length; i++) {
            System.out.print(nums[i] + " ");
        }
        System.out.println();
    }

    ImplementType type = ImplementType.DEFAULT;

    public Common() {
        this.type = ImplementType.DEFAULT;
    }

    public Common(ImplementType type) {
        this.type = type;
    }

    public ImplementType getType() {
        return type;
    }

    public void setType(ImplementType type) {
        this.type = type;
    }

}
